#pragma once
#include "base/Control.h"
#include "base/TrueTypeFont.h"

class TextBlock : public Control
{
public:
    TextBlock() {}
    ~TextBlock() {}

    void ParseXmlElement(class TiXmlElement* ele);
    bool SetAttribute(const char* attrName, const char* attrVal);
    void OnDraw();
    void OnMouseUp(tstring name, Control* ctrl, int x, int y);
    BlueprintScriptLibrary::Class* GetClass();
    VarBaseString text;
    VarBaseString sClrText;
    Vec4vbf clrText;
    bool isMouseDown;
    EventHandler<Control, VarBaseString> onMouseUp;
};
RegisterBlueprintClass(TextBlock)
